import { createRouter, createWebHistory } from 'vue-router'

import dataType from "@/views/JS/dataType.vue";
import String from "@/views/JS/String.vue"
import form from "@/views/JS/form.vue";
import map from "@/views/JS/map.vue";
import dragList from '@/views/JS/dragList.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/1-1',
      name: '数据类型',
      component: dataType
    },
    {
      path: '/1-2',
      name: '字符串模版',
      component: String
    },
    {
      path: '/1-3',
      name: '表单验证',
      component: form
    },
    {
      path: '/1-4',
      name: '地图',
      component: map
    },
    {
      path: '/1-5',
      name: '拖拽列表',
      component: dragList
    },
  ]
})

export default router
